import request from '@/utils/request'

// 查询仓库管理列表
export function listWarehouseManagement(query) {
  return request({
    url: '/basicData/warehouseManagement/list',
    method: 'get',
    params: query
  })
}

// 查询仓库管理详细
export function getWarehouseManagement(warehouseId) {
  return request({
    url: '/basicData/warehouseManagement/' + warehouseId,
    method: 'get'
  })
}

// 新增仓库管理
export function addWarehouseManagement(data) {
  return request({
    url: '/basicData/warehouseManagement',
    method: 'post',
    data: data
  })
}

// 修改仓库管理
export function updateWarehouseManagement(data) {
  return request({
    url: '/basicData/warehouseManagement',
    method: 'put',
    data: data
  })
}

// 删除仓库管理
export function delWarehouseManagement(warehouseId) {
  return request({
    url: '/basicData/warehouseManagement/' + warehouseId,
    method: 'delete'
  })
}
